<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\11\28 0028
 * Time: 10:08
 */
require_once "MongoModel.php";

$mongo_client = new MongoModel();

$filter = ['name' => 'content_id'];
$options = [
    'projection' => ['_id' => 0],
    //'sort' => ['x' => -1],
];
$namespace = "swoole.ids";
$res = $mongo_client->select($filter, $options, $namespace);
var_dump($res[0]->id);